#include "song.h"
// 小星星
int song1_data[] = {
    TONE_MID_1, 500,  TONE_MID_1, 500,  TONE_MID_5, 500,  TONE_MID_5, 500,
    TONE_MID_6, 500,  TONE_MID_6, 500,  TONE_MID_5, 1000, TONE_MID_4, 500,
    TONE_MID_4, 500,  TONE_MID_3, 500,  TONE_MID_3, 500,  TONE_MID_2, 500,
    TONE_MID_2, 500,  TONE_MID_1, 1000, TONE_MID_5, 500,  TONE_MID_5, 500,
    TONE_MID_4, 500,  TONE_MID_4, 500,  TONE_MID_3, 500,  TONE_MID_3, 500,
    TONE_MID_2, 1000, TONE_MID_5, 500,  TONE_MID_5, 500,  TONE_MID_4, 500,
    TONE_MID_4, 500,  TONE_MID_3, 500,  TONE_MID_3, 500,  TONE_MID_2, 1000,
    TONE_MID_1, 500,  TONE_MID_1, 500,  TONE_MID_5, 500,  TONE_MID_5, 500,
    TONE_MID_6, 500,  TONE_MID_6, 500,  TONE_MID_5, 1000, TONE_MID_4, 500,
    TONE_MID_4, 500,  TONE_MID_3, 500,  TONE_MID_3, 500,  TONE_MID_2, 500,
    TONE_MID_2, 500,  TONE_MID_1, 1000,
};
int song1_length = sizeof(song1_data) / sizeof(int) / 2;
Song song1{song1_data, song1_length};
// 世上只有妈妈好
int song2_data[] = {
    TONE_MID_6, 750, TONE_MID_5, 250,  TONE_MID_3, 500,  TONE_MID_5, 500,
    TONE_HIG_1, 500, TONE_MID_6, 250,  TONE_MID_5, 250,  TONE_MID_6, 1000,
    TONE_MID_3, 500, TONE_MID_5, 250,  TONE_MID_6, 250,  TONE_MID_5, 500,
    TONE_MID_3, 250, TONE_MID_2, 250,  TONE_MID_1, 250,  TONE_LOW_6, 250,
    TONE_MID_5, 250, TONE_MID_3, 250,  TONE_MID_2, 1000, TONE_MID_2, 750,
    TONE_MID_3, 250, TONE_MID_5, 750,  TONE_MID_5, 250,  TONE_MID_6, 250,
    TONE_MID_3, 750, TONE_MID_2, 250,  TONE_MID_1, 1000, TONE_MID_5, 750,
    TONE_MID_3, 250, TONE_MID_2, 250,  TONE_MID_1, 250,  TONE_LOW_6, 250,
    TONE_MID_1, 250, TONE_LOW_5, 2000,
};
int song2_length = sizeof(song2_data) / sizeof(int) / 2;
Song song2{song2_data, song2_length};

// 勇气大爆发
int song3_data[] = {
    0,          240, TONE_HIG_1, 240,  TONE_HIG_1, 240, TONE_HIG_1, 240,
    TONE_HIG_1, 240, TONE_MID_6, 240,  TONE_HIG_1, 240, TONE_MID_6, 240,
    0,          240, TONE_HIG_1, 240,  TONE_HIG_1, 240, TONE_HIG_1, 120,
    TONE_HIG_1, 120, TONE_HIG_1, 240,  TONE_MID_5, 240, TONE_HIG_1, 240,
    TONE_MID_5, 960, TONE_MID_3, 240,  TONE_MID_4, 240, TONE_MID_4, 240,
    TONE_MID_4, 240, TONE_MID_3, 240,  TONE_MID_2, 240, TONE_MID_1, 240,
    TONE_MID_2, 240, TONE_MID_6, 240,  TONE_MID_6, 480, TONE_MID_5, 720,
    0,          240, TONE_HIG_1, 240,  TONE_HIG_1, 240, TONE_HIG_1, 120,
    TONE_HIG_1, 120, TONE_HIG_1, 240,  TONE_MID_6, 240, TONE_HIG_1, 240,
    TONE_MID_6, 240, 0,          240,  TONE_HIG_1, 240, TONE_HIG_1, 240,
    TONE_HIG_1, 120, TONE_HIG_1, 120,  TONE_HIG_1, 240, TONE_MID_5, 240,
    TONE_HIG_1, 240, TONE_MID_5, 960,  TONE_MID_3, 240, TONE_MID_4, 240,
    TONE_MID_3, 240, TONE_MID_2, 240,  TONE_MID_1, 240, TONE_LOW_5, 240,
    TONE_LOW_7, 480, TONE_MID_1, 1200, 0,          960, TONE_MID_3, 240,
    TONE_MID_3, 240, TONE_MID_3, 240,  TONE_MID_3, 240, TONE_MID_3, 240,
    TONE_MID_5, 240, TONE_MID_5, 240,  TONE_MID_5, 240, TONE_MID_4, 240,
    TONE_MID_4, 240, TONE_MID_3, 240,  TONE_MID_4, 480, 0,          480,
    TONE_MID_2, 240, TONE_MID_2, 240,  TONE_MID_2, 240, TONE_MID_2, 240,
    TONE_MID_2, 240, TONE_MID_4, 240,  TONE_MID_4, 240, TONE_MID_4, 240,
    TONE_MID_4, 240, TONE_MID_3, 240,  TONE_MID_3, 240, TONE_MID_4, 240,
    TONE_MID_5, 240, 0,          240,  TONE_MID_5, 240, TONE_MID_5, 240,
    TONE_MID_6, 480, TONE_MID_1, 240,  TONE_MID_1, 480, TONE_MID_6, 240,
    0,          240, TONE_MID_6, 240,  TONE_MID_5, 240, TONE_MID_5, 240,
    TONE_MID_4, 240, TONE_MID_6, 240,  TONE_MID_5, 480, 0,          240,
    TONE_MID_4, 480, TONE_MID_4, 240,  TONE_MID_4, 240, TONE_MID_4, 240,
    0,          720, TONE_MID_6, 480,  TONE_MID_5, 240, TONE_MID_5, 240,
    TONE_MID_4, 240, TONE_MID_5, 480,  0,          480, TONE_MID_3, 240,
    TONE_MID_3, 240, TONE_MID_3, 240,  TONE_MID_3, 240, TONE_MID_3, 240,
    TONE_MID_5, 240, TONE_MID_5, 240,  TONE_MID_5, 240, TONE_MID_5, 240,
    TONE_MID_4, 240, TONE_MID_4, 240,  TONE_MID_3, 240, TONE_MID_4, 480,
    0,          480, TONE_MID_2, 240,  TONE_MID_2, 240, TONE_MID_2, 240,
    TONE_MID_2, 240, TONE_MID_2, 240,  TONE_MID_4, 240, TONE_MID_4, 240,
    TONE_MID_4, 240, TONE_MID_4, 240,  TONE_MID_3, 240, TONE_MID_3, 240,
    TONE_MID_4, 240, TONE_MID_5, 240,  0,          240, TONE_MID_5, 240,
    TONE_MID_5, 240, TONE_MID_6, 480,  TONE_MID_1, 240, TONE_MID_1, 240,
    TONE_MID_1, 240, TONE_MID_6, 240,  TONE_MID_5, 480, TONE_MID_5, 240,
    TONE_MID_5, 240, TONE_MID_6, 240,  TONE_MID_5, 480, 0,          240,
    TONE_MID_4, 480, TONE_MID_4, 240,  TONE_MID_4, 240, TONE_MID_3, 240,
    TONE_MID_2, 240, TONE_MID_1, 240,  TONE_MID_2, 240, TONE_MID_1, 480,
    0,          480, 0,          240,  TONE_HIG_1, 240, TONE_HIG_1, 240,
    TONE_HIG_1, 240, TONE_HIG_1, 240,  TONE_MID_6, 240, TONE_HIG_1, 240,
    TONE_MID_6, 240,
};
int song3_length = sizeof(song3_data) / sizeof(int) / 2;
Song song3{song3_data, song3_length};

// 龙猫 - 风的甬道
int song4_data[] = {
    TONE_MID_3, 250, TONE_MID_5, 250, TONE_MID_6,    500, TONE_MID_6, 250,
    TONE_MID_7, 250, TONE_MID_5, 500, TONE_MID_3,    250, TONE_MID_5, 250,
    TONE_MID_6, 500, TONE_MID_6, 250, TONE_HIG_2,    250, TONE_MID_7, 500,
    TONE_MID_7, 250, TONE_HIG_2, 250, TONE_HIG_3,    250, TONE_HIG_3, 250,
    TONE_HIG_3, 250, TONE_HIG_5, 250, TONE_HIG_4_UP, 250, TONE_HIG_3, 250,
    TONE_HIG_2, 250, TONE_HIG_1, 250, TONE_MID_7,    500, TONE_MID_6, 250,
    TONE_MID_3, 250, TONE_MID_7, 500, TONE_MID_3,    250, TONE_MID_5, 250,
    TONE_MID_6, 500, TONE_MID_6, 250, TONE_MID_7,    250, TONE_MID_5, 500,
    TONE_MID_3, 250, TONE_MID_5, 250, TONE_MID_6,    500, TONE_MID_6, 250,
    TONE_HIG_2, 250, TONE_MID_7, 500, TONE_MID_7,    500, TONE_HIG_2, 250,
    TONE_HIG_3, 250, TONE_HIG_3, 250, TONE_HIG_5,    250, TONE_HIG_5, 250,

};
int song4_length = sizeof(song4_data) / sizeof(int) / 2;
Song song4{song4_data, song4_length};

Song allSongs[] = {song1, song2, song3, song4};
int numSongs = sizeof(allSongs) / sizeof(Song);